package com.yuchen.ishop.web.app.dictionary;

import com.yuchen.ishop.entity.GoodsImg;
import com.yuchen.ishop.service.dictionary.AddressRestClient;
import com.yuchen.jaxrs.Responses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 15-4-22.
 */
@Controller
@RequestMapping(value = "/address")
public class AddressAction {

    @Autowired
    private AddressRestClient addressRestClient;

    @RequestMapping(value = "/getByParentId")
    @ResponseBody
    public Responses getByParentId(String parentId){
        return addressRestClient.findByParentId(parentId);
    }
}

